const USER_DETAIL_KEY = '_user_detail'

export const getRoleDetail = () => {
  return JSON.parse(localStorage.getItem(USER_DETAIL_KEY)) || ''
}

export const setRoleDetail = (userDetail) => {
  localStorage.setItem(USER_DETAIL_KEY, JSON.stringify(userDetail))
  return userDetail
}
